﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace ProgramCat.FiddlerExtension.Core.Utils.Winapi
{
    /// <summary>
    /// 引入kernel32 winapi
    /// </summary>
    public static class Kernel32api
    {
        [DllImport("kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
        public static extern int LCMapStringEx(
                   string lpLocaleName,        //  LPCWSTR      lpLocaleName
                   uint dwMapFlags,        //  DWORD        dwMapFlags
                   string lpSrcStr,        //  LPCWSTR      lpSrcStr
                   int cchSrc,             //  int          cchSrc
                   [Out] string lpDestStr,           //  LPWSTR       lpDestStr
                   int cchDest,            //  int          cchDest
                   IntPtr lpVersionInformation,    //  LPNLSVERSIONINFO lpVersionInformation
                   IntPtr lpReserved,          //  LPVOID       lpReserved
                   IntPtr sortHandle);         //  LPARAM       sortHandle
    }
}
